package flex.cc.basicinformation.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import flex.cc.basicinformation.entity.ChannelDataEntity;

/**
 * 权限表
 *
 * @author guozejun
 * @email guozejun@sinosoft.com.cn
 * @date 2021-10-14 22:53:59
 */
@Mapper
public interface ChannelDataDao extends BaseMapper<ChannelDataEntity> {

	List<ChannelDataEntity> getUrl(@Param("ywid")String ywid);

	void insertChannelData(@Param("channe")ChannelDataEntity data);

	List<ChannelDataEntity> selectChannelDataById(@Param("ywid")String ywid);

	/**
	 * @description 根据参数查询一个
	 * @param params 查询参数
	 * @return
	 * @author wkangle
	 * @time 2022/02/23 0023 17:32
	 * @exception/throws
	*/
	ChannelDataEntity getOneByParams(Map<String, Object> params);

	/**
	 * @description 根据渠道商配置信息的业务id，删除对应的接口信息【2.2-服务包配置需求】
	 * @param ywid 渠道商的业务id
	 * @return
	 * @author wkangle
	 * @time 2022/02/23 0023 17:45
	 * @exception/throws
	*/
	int deleteByYwid(String ywid);

	/**
	 *
	 * @author WANGCONG
	 * 2022年4月13日下午17:16:09
	 * @desc 根据救援单渠道来源查询对应接口信息
	 */
	ChannelDataEntity findChannelDataByParam(Map<String, String> channelMap);

}
